package com.lifeng.mydubbo.demo;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lifeng.mydubbo.api.UserService;


public class Test1 {

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext wc =  new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		wc.start();
		UserService u = (UserService) wc.getBean("userServiceImpl");
		System.out.println(u.getUser());
		System.in.read();
	}

}
